package Graphisme;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.BorderFactory;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Image;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class Combinaison extends JPanel{

		Combinaison(String name){
			
			this.setBackground(Color.white);
			this.setPreferredSize(new Dimension(100, 75));
			this.setBorder(BorderFactory.createTitledBorder(name));
			this.setLayout(new GridLayout(0, 4));
/*
			this.addMouseListener(new MouseListener() {	

				public void mouseReleased(MouseEvent e) {
				}
				
				public void mousePressed(MouseEvent e) {
				}
				
				public void mouseExited(MouseEvent e) {
				}
				
				public void mouseEntered(MouseEvent e) {
				}
				
				public void mouseClicked(MouseEvent e) {

					System.out.println("yop plop ça marche !");
					// on bascule sur le plateau
				}
			});
			*/
			
		}

	Combinaison(String name,String des){
			
			//this.setBackground(Color.white);
			//this.setPreferredSize(new Dimension(100, 75));
			this.setBorder(BorderFactory.createTitledBorder(name));
			this.setLayout(new GridLayout(0, 1));
			JLabel p=new JLabel();
			p.setText(des);
	        this.add(p);
	}

	public void setgoldadd(JPanel p){			
		this.add(p);
	}
	
	public void setpouvoir(JLabel l){
		this.add(l);
	}

	public void setpeuple(JLabel l){
		this.add(l);
	}






}